//
//  PCDApiGetNavigateExtraData.m
//  PCDMPaasBank
//
//  Created by DK on 2021/3/31.
//  Copyright © 2021 Alibaba. All rights reserved.
//

#import "PCDApiGetNavigateExtraData.h"

#import "PCDDataBaseModel.h"

@implementation PCDApiGetNavigateExtraData

- (void)handler:(id)data andContext:(PCDContext *)context ResponseCallback:(WVJBResponseCallback )responseCallback
{
    NSDictionary *parameters = data;
    NSString *callBack = [parameters objectForKey:@"success"];
    NSString *extraData = [PCDDataBaseModel shareModel].extraData;
    
    if ([PCDUtil nilOrEmptyString:extraData])
    {
        evaluateJavaScriptOnMainThread(self,callBack,@"");
    }else
    {
        evaluateJavaScriptOnMainThread(self,callBack,extraData);
    }
    
    [PCDDataBaseModel shareModel].extraData =@"";

}


@end
